<%@ page import="projectmanagerapp.User" %>

<%@ page contentType="text/html;charset=ISO-8859-1" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<meta name="layout" content="main"/>
<style type="text/css" media="screen">
			#status {
				background-color: #eee;
				border: .2em solid #fff;
				margin: 2em 2em 1em;
				padding: 1em;
				width: 12em;
				float: left;
				-moz-box-shadow: 0px 0px 1.25em #ccc;
				-webkit-box-shadow: 0px 0px 1.25em #ccc;
				box-shadow: 0px 0px 1.25em #ccc;
				-moz-border-radius: 0.6em;
				-webkit-border-radius: 0.6em;
				border-radius: 0.6em;
			}

			.ie6 #status {
				display: inline; /* float double margin fix http://www.positioniseverything.net/explorer/doubled-margin.html */
			}

			#status ul {
				font-size: 0.9em;
				list-style-type: none;
				margin-bottom: 0.6em;
				padding: 0;
			}
            
			#status li {
				line-height: 1.3;
			}

			#status h1 {
				text-transform: uppercase;
				font-size: 1.1em;
				margin: 0 0 0.3em;
			}

			#page-body {
				margin: 2em 1em 1.25em 18em;
			}

			h2 {
				margin-top: 1em;
				margin-bottom: 0.3em;
				font-size: 1em;
			}

			p {
				line-height: 1.5;
				margin: 0.25em 0;
			}

			#controller-list ul {
				list-style-position: inside;
			}

			#controller-list li {
				line-height: 1.3;
				list-style-position: inside;
				margin: 0.25em 0;
			}

			@media screen and (max-width: 480px) {
				#status {
					display: none;
				}

				#page-body {
					margin: 0 1em 1em;
				}

				#page-body h1 {
					margin-top: 0;
				}
			}
		</style>
		
<title>Manager Test Page</title>
</head>

<body>
<a href="#show-role" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>

<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				
				<g:if  test="${session.user == null}">
				
				<li><g:link class="login" controller= "user"action="login"><g:message code="Login" args="[entityName]" /></g:link></li>
				</g:if> 
				
				<g:else>	
				<li><g:link class="login" controller= "user"action="logout"><g:message code="Logout" args="[entityName]" /></g:link></li>				</g:else>
			</ul>
		</div>
  <div class="body">
  <h1>Welcome to the Manager features!</h1>
  <div class="body">
  
  <div id="page-body" role="main">
 			 <g:if test="${flash.message}">
            <div class="message" role="status">${flash.message}</div>
            </g:if>
			<h1>Project Manager</h1>
			<p>Welcome to the Home page.</p>

			<div id="controller-list" role="navigation">
				<h2>Features</h2>
				<ul>
					<li><g:link controller="Project" action="create">Add Project</g:link></li>
					<li><g:link controller="Project" action="list">List Projects</g:link></li>
					
				</ul>
			</div>
		</div>
  
  </div>
</body>
  
  
  
  
  
  
  </div>
</body>
</html>